
<div id="map" style="height:600px; width:800px;  margin-top:50px;"></div>

<script type="text/javascript" src="http://www.openlayers.org/api/OpenLayers.js"></script>

<script>

	var lon = -74;
	var lat = 5;
	var zoom = 5;

        function initMap(){
            var map = new OpenLayers.Map('map');
            /*var gbif = new OpenLayers.Layer.WMS( "GBIF",
                "http://geoserver.gbif.org/wms?", {layers: "gbif:gbifDensityLayer", version: "1.0.0", transparent: "true", 
                format: "image/png", filter:"${param.wmsFilter}"} );*/
            var gbif = new OpenLayers.Layer.WMS( "GBIF",
                "http://localhost/geoserver/wms?", {layers: "gbif:gbifDensityLayer", version: "1.0.0", transparent: "true", 
                format: "image/png", filter:"${param.wmsFilter}"} );

			var ol_wms = new OpenLayers.Layer.WMS( "World Map",
              "http://labs.metacarta.com/wms-c/Basic.py?", {layers: 'basic', format: 'image/png' } );
			
			var wms = new OpenLayers.Layer.WMS(
					  "OpenLayers WMS",
					  "http://vmap0.tiles.osgeo.org/wms/vmap0",
					  {'layers':'basic'} );

            //map.addLayers([ol_wms, gbif]);
            map.addLayers([wms]);
            //map.addControl(new OpenLayers.Control.LayerSwitcher());
			//map.zoomToMaxExtent();
            map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
        }
        
        function initMap2(){
        	var map = new OpenLayers.Map('map');
            var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
                "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
            var dm_wms = new OpenLayers.Layer.WMS(
                "Canadian Data",
                "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap",
                {
                    layers: "bathymetry,land_fn,park,drain_fn,drainage," +
                            "prov_bound,fedlimit,rail,road,popplace",
                    transparent: "true",
                    format: "image/png"
                },
                {isBaseLayer: false}
            );
            map.addLayers([wms, dm_wms]);
            var vectorLayer = new OpenLayers.Layer.Vector("Overlay");
            var feature = new OpenLayers.Feature.Vector(
             new OpenLayers.Geometry.Point(-71, 42),
             {some:'data'},
             {externalGraphic: 'img/marker.png', graphicHeight: 21, graphicWidth: 16});
            vectorLayer.addFeatures(feature);
            map.addLayer(vectorLayer);
            map.zoomToMaxExtent();
        }
        
        initMap();
</script>

